package com.taplinker.client.im.rpc;

import com.taplinker.client.AppConfigFactory;
import com.taplinker.client.im.rpc.body.Cmd008Req;
import com.taplinker.client.im.util.IMLogUtil;
import com.taplinker.core.rpc.Result;

public class Cmd008 extends SimpleSocketCommand<Cmd008Req> {
	public Cmd008(String status) {
		body = new Cmd008Req();
		body.setUserId(AppConfigFactory.getInstance().getUserInfo().getUserid());
		body.setStatus(status);
	}
	
	@Override
	public void yes(Result result) {
		IMLogUtil.log("008", body.getStatus());
	}
	
	@Override
	protected String getCommand() {
		return "008";
	}
}
